package org.dromara.answer.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.answer.domain.AiUserAnswers;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 用户答题记录视图对象 ai_user_answers
 *
 * @author Lion Li
 * @date 2025-04-09
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AiUserAnswers.class)
public class AiUserAnswersVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID，主键
     */
    @ExcelProperty(value = "记录ID，主键")
    private Long recordId;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 考试ID
     */
    @ExcelProperty(value = "考试ID")
    private Long userExamId;

    /**
     * 题目ID
     */
    @ExcelProperty(value = "题目ID")
    private Long questionId;

    /**
     * 题目类型，冗余字段便于查询
     */
    @ExcelProperty(value = "题目类型，冗余字段便于查询")
    private String questionType;

    /**
     * 用户答案内容：单选题存储选项ID，多选题存储JSON格式的选项ID数组，填空题存储文本答案，判断题存储true/false
     */
    @ExcelProperty(value = "用户答案内容：单选题存储选项ID，多选题存储JSON格式的选项ID数组，填空题存储文本答案，判断题存储true/false")
    private String answerContent;

    /**
     * 作答时间
     */
    @ExcelProperty(value = "作答时间")
    private Date answerTime;

    /**
     * 停留时间，单位秒
     */
    @ExcelProperty(value = "停留时间，单位秒")
    private Integer stayTime;

    /**
     * 是否正确：0-错误，1-正确
     */
    @ExcelProperty(value = "是否正确：0-错误，1-正确")
    private Integer isCorrect;

    /**
     * 获得的分数
     */
    @ExcelProperty(value = "获得的分数")
    private Integer scoreEarned;

    /**
     * 题目内容
     */
    @ExcelProperty(value = "题目内容")
    private String questionTitle;

    /**
     * 正确答案
     */
    @ExcelProperty(value = "正确答案")
    private String correctAnswer;

}
